package com.example.ymm.modules1.service.ms;

import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.ms.DDepartment;
import com.example.ymm.modules1.query.ms.DDepartmentQueryCriteria;

import java.util.List;

public interface DDepartmentService extends BaseService<DDepartment> {


    TableList<DDepartment> list(DDepartmentQueryCriteria criteria, YmPageDto ymPage);

    List<DDepartment> queryAll(DDepartmentQueryCriteria criteria);

    List<DDepartment> getTreeList();//部门树形结构

    DDepartment getByDeptNo(String no);//通过部门编号查询


}
